package com.ftwj.demo.permission.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ftwj.demo.permission.entity.UserBean;
import com.ftwj.demo.permission.vo.LoginEntity;
import com.ftwj.demo.permission.vo.UserBeanVo;
import com.ftwj.demo.global.shiro.ShiroPrincipal;
import com.ftwj.demo.utils.captcha.base.Captcha;

public interface UserService extends IService<UserBean> {
	
	public String login(String phone,String password,Boolean remember);

	public boolean register(UserBean user);

	public boolean insert(String phone, String showName);
	
	public UserBean getInfoById(Integer id);

	public List<Map<String, Object>> listMaps(UserBean bean);
	
	public IPage<Map<String, Object>> pageMaps(IPage<UserBean> page, UserBean bean);
	
	public void logout();
	
	public Map<String, Object> captcah(Captcha captcha);
	
	public String login(LoginEntity login);

	public boolean updateStateById(Integer id,Integer state);

	public boolean updatePassword(String userName, String oldPasssword, String newPasssword);

	public boolean reset(Integer id);

	public ShiroPrincipal getShiroPrincipal();

	public boolean updateVoById(UserBeanVo bean);

}
